package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.SysUserPariseMapper;
import com.ruoyi.project.system.domain.SysUserParise;
import com.ruoyi.project.system.service.ISysUserPariseService;

/**
 * 用户动态点赞Service业务层处理
 * 
 * @author jjp
 * @date 2020-04-16
 */
@Service
public class SysUserPariseServiceImpl implements ISysUserPariseService 
{
    @Autowired
    private SysUserPariseMapper sysUserPariseMapper;

    /**
     * 查询用户动态点赞
     * 
     * @param pariseId 用户动态点赞ID
     * @return 用户动态点赞
     */
    @Override
    public SysUserParise selectSysUserPariseById(Long pariseId)
    {
        return sysUserPariseMapper.selectSysUserPariseById(pariseId);
    }

    /**
     * 查询用户动态点赞列表
     * 
     * @param sysUserParise 用户动态点赞
     * @return 用户动态点赞
     */
    @Override
    public List<SysUserParise> selectSysUserPariseList(SysUserParise sysUserParise)
    {
        return sysUserPariseMapper.selectSysUserPariseList(sysUserParise);
    }

    /**
     * 新增用户动态点赞
     * 
     * @param sysUserParise 用户动态点赞
     * @return 结果
     */
    @Override
    public int insertSysUserParise(SysUserParise sysUserParise)
    {
        return sysUserPariseMapper.insertSysUserParise(sysUserParise);
    }

    /**
     * 修改用户动态点赞
     * 
     * @param sysUserParise 用户动态点赞
     * @return 结果
     */
    @Override
    public int updateSysUserParise(SysUserParise sysUserParise)
    {
        return sysUserPariseMapper.updateSysUserParise(sysUserParise);
    }

    /**
     * 批量删除用户动态点赞
     * 
     * @param pariseIds 需要删除的用户动态点赞ID
     * @return 结果
     */
    @Override
    public int deleteSysUserPariseByIds(Long[] pariseIds)
    {
        return sysUserPariseMapper.deleteSysUserPariseByIds(pariseIds);
    }

    /**
     * 删除用户动态点赞信息
     * 
     * @param pariseId 用户动态点赞ID
     * @return 结果
     */
    @Override
    public int deleteSysUserPariseById(Long pariseId)
    {
        return sysUserPariseMapper.deleteSysUserPariseById(pariseId);
    }

    @Override
    public List<SysUserParise> selectSysUserPariseByDynamicId(Long dynamicId) {
        return sysUserPariseMapper.selectSysUserPariseByDynamicId(dynamicId);
    }
}
